package it.mauriziobasile.andoid.aub.runnable;

import android.content.Context;
import android.content.Intent;

public abstract class BaseRunnable implements Runnable {

    protected Context mContext;

    public BaseRunnable(Context context) {
        mContext = context;
    }

    protected void notifyMessage(String msg, String action) {
        Intent intent = new Intent(action);
        intent.putExtra("msg", msg);
        mContext.sendBroadcast(intent);
    }
}
